<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML>
<html>
	<head>
		<base href="<%=basePath%>">

		<title>多选题管理</title>
		<link rel="stylesheet" type="text/css"
			href="<%=basePath%>jslib/bootstrap/css/bootstrap.css">
		<link rel="stylesheet" type="text/css"
			href="<%=basePath%>css/theme.css">
		<link rel="stylesheet"
			href="<%=basePath%>jslib/font-awesome/css/font-awesome.css">
		<script src="<%=basePath%>jslib/jquery-1.7.2.min.js"
			type="text/javascript"></script>

	</head>

	<body class="content1">
		<div class="header">
			<h1 class="page-title">
				多选题管理
			</h1>
		</div>
		<ul class="breadcrumb">
			<li>
				<a href="index.html">Home</a>
				<span class="divider">/</span>
			</li>
			<li class="active">
				教师列表
			</li>
		</ul>
		<div class="container-fluid">
			<div class="row-fluid">
				<form class="form-inline" method="post"
					action="<%=basePath %>teacher/manychoose/showsearch">
					<input class="input-xlarge" placeholder="功能名称..." name="searchname"
						type="text">
					<input class="btn icon-search" type="submit" value="查询" />
					<a class="btn btn-primary"
						href="<%=basePath %>teacher/manychoose/showadd">新增 </a>
				</form>

				<div class="well">
					<table class="table">
							<c:forEach items="${manychooses}" var="item">
							<tr><td></td></tr>
								<tr>
									<td>问题</td>
									<td colspan="3">${item.question }</td>
									</tr>
									<tr>
									<td>正确答案</td>
									<td><p style="color: red;">${item.CA }</p></td>
								
									<td>上传者ID</td>
									<td>${item.teacherid }</td>
									<td>分数</td>
									<td>${item.point }</td>
								</tr>
								<tr>
									<td>A</td>
									<td>${item.a }</td>
									<td>B</td>
									<td>${item.b }</td>
								</tr>
								<tr>
									<td>C</td>
									<td>${item.c }</td>
									<td>D</td>
									<td>${item.d }</td>
								</tr>

								<tr>
									<td>状态</td>
									<td>${item.state }</td>
									<td>
									<a href="<%=basePath %>teacher/manychoose/showedit?theid=${item.id}">编辑</a>
									</td>
								</tr>
							</c:forEach>
					</table>
					
				</div>
			</div>
		</div>
	</body>
</html>
